package com.bite.common.security.exception;


import com.bite.common.core.enums.ResultCode;
import lombok.Getter;

//自定异常，这样在抛出运行时异常的时候，可以抛出自己定义的异常
@Getter
public class ServiceException extends RuntimeException{
    private ResultCode resultCode;

    public ServiceException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
